package com.dkd.system.mapper;

import java.util.List;
import com.dkd.system.domain.TWarranty;
import org.apache.ibatis.annotations.Param;

/**
 * listMapper接口
 * 
 * @author chuyongshuo
 * @date 2025-08-07
 */
public interface TWarrantyMapper 
{
    /**
     * 查询list
     * 
     * @param id list主键
     * @return list
     */
    public TWarranty selectTWarrantyById(Integer id);

    /**
     * 查询list列表
     * 
     * @param tWarranty list
     * @return list集合
     */
    public List<TWarranty> selectTWarrantyList(TWarranty tWarranty);

    /**
     * 新增list
     * 
     * @param tWarranty list
     * @return 结果
     */
    public int insertTWarranty(TWarranty tWarranty);

    /**
     * 修改list
     * 
     * @param tWarranty list
     * @return 结果
     */
    public int updateTWarranty(TWarranty tWarranty);

    /**
     * 删除list
     * 
     * @param id list主键
     * @return 结果
     */
    public int deleteTWarrantyById(Integer id);

    /**
     * 批量删除list
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTWarrantyByIds(Integer[] ids);

    //根据id修改json
    void updateBookJson(@Param("id") String id, @Param("jsonContent") String jsonContent, @Param("updatedBy") String updatedBy);

    TWarranty selectTWarrantyJsonById(Integer id);
}
